﻿@model websitev2.Models.Developers.Register
@{
    ViewBag.Title = "Developer Logon - Startstop.me";
}
@Html.Partial("TopBars/GeneralBar");
<div id="profile-wrap">
    <div id="profile" class="section group">
        <div id="bc">
            You are here: <a href="/">Home</a> <a href="#">Developers Information</a>
        </div>
        <!-- /breadcrumb -->


        <div id="generic-wrap group">
           <div class="generic-col">
                    <h3>Register</h3>
                    <p>
                    Enter a related website URL for the game, app, or website relating to the account. Also please provide a short
                    description of what will be stored in startstop.me. 
                    </p>
                    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
                    @if (Request.IsAuthenticated)
                    {
                     using (Html.BeginForm("Index", "Developer", FormMethod.Post))
                      {
                          <div>
                        <fieldset>
                         <p>
                            <label>Releated site URL</label>
                            <p>
                            <font color=red>@Html.ValidationMessageFor(model => model.SiteURL)</font>
                            </p><p>
                            @Html.TextBoxFor(model => model.SiteURL)
                            </p>
                         </p>
                         <p>
                            <label>Description of the stats or purpose</label>
                            <p>
                             <font color=red> @Html.ValidationMessageFor(model => model.Description) </font>
                            @Html.TextAreaFor(model => model.Description) 
                            </p>
                         </p>
                        
                        <p>
                        <input type="submit" value="Register as developer" class="action medium" />
                        </p>
                        </fieldset>
                        </div>
                      }
                    }
                    else
                    {
                        
                        <p class="notification error">You must be logged in as a normal user to register as a developer</p>
                        <p>
                            <a href="/Account/Logon/">Log in</a> if you have an account
                        </p>
                        <p>
                            <a href="/Account/Register">Register</a> here if you need one
                        </p>
                    }
           </div>
           
            <div class="generic-col ">
                <h3>
                    Developer Information</h3>
                <p>
                    Startstop.me aims to provide an open platform for sharing stats and trophies in
                    one place. Games, applications and platforms provide stats for users, but often
                    they’re only accessible from one place. We have provided an open platform where
                    you can add your application, game or website, and deliver user specific stats or
                    trophies to their online profile.
                </p>
                <p>
                    There’s both a REST and SOAP interface available and all you need to do to begin
                    is to register for an API KEY. You must have registered as a user before you can
                    upgrade to developer.
                </p>
                <p>
                    We have a number of Open Source projects to demonstrate how to integrate and a full
                    list of these please visit our wiki.
                </p>
                <p>
                    It’s not just external applications that can benefit from your help; if you’re a
                    .NET developer or a talented designer we need your help to make StartStop.Me a better
                    place for everyone who uses it. Get in touch if you’d like to help.
                </p>
            </div>
           
            <div class="generic-col last-col">
                    <h3>Screenshots</h3>
           </div>

        </div>
        <!-- /generic-wrap -->
    </div>
    <!-- /profile-wrap -->
